package apis

// web ui
const (
	InfosGet = "/infos"

	ConfigGet        = "/config/get"
	ConfigList       = "/config/list"
	ConfigKindList   = "/config/kind/list"
	ConfigCreate     = "/config/create"
	ConfigHelmCreate = "/config/helm/create"
	ConfigHelmUpdate = "/config/helm/update"
	ConfigDelete     = "/config/delete"

	InstanceGet       = "/instance/get"
	InstanceList      = "/instance/list"
	InstanceKindList  = "/instance/kind/list"
	InstanceListTotal = "/instance/list/all"
	InstanceCreate    = "/instance/create"
	InstanceDelete    = "/instance/delete"
	//ExamplePost = "/apis/handler/post/config/"

	AgentGet  = "/agent/get"
	AgentList = "/agent/list"

	LinksGet = "/links/get"
	LinksSet = "/links/set"

	UnLinksGet = "/unlinks/get"

	Report = "/report/socket"
	Proxy  = "/proxy/application"

	Test = "/test"

	MonitorMetrics              = "/metric"
	MonitorMetricsList          = "/metric/list"
	MonitorMetricsHistoryMethod = "/metric/history/method"
	MonitorMetricsHistorySum    = "/metric/history/sum"
	MonitorGetInstances         = "/metric/instances"
	MonitorAllInstances         = "/metric/list/objects"
	MonitorGetInstanceCpu       = "/metric/cpu/usage/ratio"
	MonitorGetInstanceCpuSocket = "/metric/cpu/usage/ratio/socket"
	MonitorGetInstanceMem       = "/metric/mem/usage/ratio"
	MonitorGetInstanceMemSocket = "/metric/mem/usage/ratio/socket"

	MonitorGetInstanceLogsCounts     = "/logs/counts"
	MonitorGetInstanceLogsInfo       = "/logs/info"
	MonitorGetInstanceLogsInfoSocket = "/logs/info/socket"

	MonitorGetJaegerSearch = "/apis/instance/jaeger/proxy"

	MonitorTraces = "/traces"

	TotalGraph        = "/resource/dag"
	TotalGraphLinkerd = "/resource/dag/linerd"
	TotalResources    = "/resource/tree"

	HelmListCharts = "/apis.helm-srv.charts.list/{name:string}"

	IndexPageGet = "/index/get"
	IndexPageAdd = "/index/add"
	IndexPageSet = "/index/set"
)

const (
	GetApplicationStatisticDataType = "/apis.data.application.instance.statistic.data.list"
	GetStrategyMetricsThreshold     = "/apis.data.strategy.instance.metrics.threshold"
)
